//衢州一码付
$("#editquzhouyimafuType").change(function (){
    var reslist=$("#editquzhouyimafuType").select2("data");
    $("#editquzhouyimafuTypes").val(payTypes(reslist));
});


$("#quzhouyimafuType").change(function(){
    var reslist=$("#quzhouyimafuType").select2("data");
    $("#quzhouyimafuTypes").val(payTypes(reslist));
});

function editquzhouyimafu(i) {

    $("#editquzhouyimafuUrl").attr("name", "payCompanyInfos[" + i + "].quZhouYiMaFuVO.url");
    $("#editquzhouyimafuMerchantId").attr("name", "payCompanyInfos[" + i + "].quZhouYiMaFuVO.merchantId");
    $("#editquzhouyimafuPlatformId").attr("name", "payCompanyInfos[" + i + "].quZhouYiMaFuVO.platformId");
    $("#editquzhouyimafuKey").attr("name", "payCompanyInfos[" + i + "].quZhouYiMaFuVO.key");
    $("#editquzhouyimafuAge").attr("name", "payCompanyInfos[" + i + "].quZhouYiMaFuVO.age");


    $("#editquzhouyimafuTypes").attr("name", "payCompanyInfos[" + i + "].payType");

    $("#editquzhouyimafuType").attr("data-placeholder", "请从列表选择一项");
    $("#editquzhouyimafuType").attr("required", "");

    $("#editquzhouyimafuUrl").attr("required", "");
    $("#editquzhouyimafuMerchantId").attr("required", "");
    $("#editquzhouyimafuPlatformId").attr("required", "");
    $("#editquzhouyimafuKey").attr("required", "");
    $("#editquzhouyimafuAge").attr("required", "");

}


function quzhouyimafu(i) {
    $("#quzhouyimafuUrl").attr("name", "payCompanyInfos[" + i + "].quZhouYiMaFuVO.url");
    $("#quzhouyimafuMerchantId").attr("name", "payCompanyInfos[" + i + "].quZhouYiMaFuVO.merchantId");
    $("#quzhouyimafuPlatformId").attr("name", "payCompanyInfos[" + i + "].quZhouYiMaFuVO.platformId");
    $("#quzhouyimafuKey").attr("name", "payCompanyInfos[" + i + "].quZhouYiMaFuVO.key");
    $("#quzhouyimafuAge").attr("name", "payCompanyInfos[" + i + "].quZhouYiMaFuVO.age");


    $("#quzhouyimafuTypes").attr("name", "payCompanyInfos[" + i + "].payType");


    $("#quzhouyimafuPayType").attr("data-placeholder", "请从列表选择一项");
    $("#quzhouyimafuPayType").attr("required", "");


}